package com.qf.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * 自定义Controller  用户管理
 * @author lixu
 */
@Controller
public class UserController {

    //  http://localhost:8080    /user/add
    //  http://localhost:8080    /user/find
    /**
     * 添加
     */
    @RequestMapping("/user/add")
    public void addUser(Integer age){
        System.out.println("UserController====addUser");
    }
    public void addUser(String name){
        System.out.println("UserController====addUser");
    }
    /**
     * 查询
     */
    @RequestMapping("/user/findUser")
    public void findUser(){
        System.out.println("UserController====findUser");
        //视图
    }
}
